package com.bsoft.gol.editor.dao;


import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import com.bsoft.gol.editor.editor.EditorCommonWidget;

import java.util.List;

/**
 * Created by Sangs on 2020/4/3.
 */
public abstract class EditorCommonWidgetDAO extends ctd.persistence.support.hibernate.HibernateSupportDelegateDAO<EditorCommonWidget> {

    public EditorCommonWidgetDAO() {
        this.setKeyField("commonWidgetId");
    }

    @DAOMethod(sql = "from EditorTitleOption where widgetClassId  =:classId")
    public abstract List<EditorCommonWidget> queryEditorCommonWidgetByClassId(@DAOParam("classId") String classId);



}